package nz.ac.massey.cs.se400_2013.ass3.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import nz.ac.massey.cs.se400_2013.ass3.Paper;

public class AddPaperHandler extends Handler {
	public AddPaperHandler(SideTree sideTree) {
		super(sideTree);
	}

	public void actionPerformed(ActionEvent arg0) {
		System.out.println("Add new Paper instance to selected Course node.");
		Paper newPaper = new Paper();
		newPaper.setName("New paper");
		sideTree.addPaperForCourse(newPaper);
	}
}
